package org.jkp.kirtan.finder;

import java.io.IOException;
import java.util.List;

import org.junit.Test;

import com.jkp.mp3tag.Kirtan;

public class OfficialTitleCacheShould {

	OfficialTitleCache officialTitleCache = OfficialTitleCache.getInstance() ;
	
	@Test
	public void loadTitles() {
		String[] officialTitles = officialTitleCache.getOfficalTitles();
		int i = 0;
		for(String title: officialTitles) {
			System.out.println(i+" "+title);
			i = i+1;
		}
			
	}
	
	@Test
	public void saveKirtansAsJson() throws Exception {
		String fileName = "C:\\kirtanlist.json";
		officialTitleCache.saveKirtansAsJson(fileName);
	}
	
}
